package com.opentae.data.mall.interfaces;

import com.opentae.core.mybatis.config.MyBatisRepository;
import com.opentae.core.mybatis.mapper.Mapper;
import com.opentae.data.mall.beans.MoOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;

import java.util.Date;
import java.util.List;

/**
 * 
 * Created by exampleCreater.
 */
@MyBatisRepository("tae_mall_moOrderMapper")
@Scope("singleton")
@Lazy(true)
public interface MoOrderMapper extends Mapper<MoOrder> {

    Double sumMoneyByTime(@Param("userId") Long userId, @Param("fromTime") Date fromTime);

    Double sumPassageByTime(@Param("passagewayId")Long passagewayId,@Param("fromTime") Date fromTime,@Param("toTime") Date toTime);
}
